package com.jsgt.greekfire.ui.mine.coindetail.adapter

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.fhx.core.base.BaseAdapter
import com.fhx.core.base.BaseViewHolder
import com.jsgt.greekfire.R
import com.jsgt.greekfire.bean.CoinBean

/**
 * author fhx
 * create time 2020/4/24 13:47
 **/
class CoinAdapter : BaseAdapter<CoinBean>() {

    inner class VH(itemView: View) : BaseViewHolder(itemView) {
        init {

        }

        fun bindData(bean: CoinBean) {

        }
    }

    override fun provideViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder? {
        val view = LayoutInflater.from(parent.context).inflate(R.layout.item_coin, parent, false)
        return VH(view)
    }

    override fun onBindViewHolder(holder: BaseViewHolder, position: Int) {
        val viewHolder = holder as VH
        viewHolder.bindData(dataList()[position])
    }
}